package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    void add(EmployeeDTO dto);

    PageResult pageQuery(EmployeePageQueryDTO quetyDTO);

    void postHandle(HttpServletRequest request, HttpServletRequest response, Object handler, ModelAndView modelAndView) throws Exception;

    void changeStatus(int status,Long id);

    Employee selectById(Long id);

    void update(Employee employee);
}
